package com.huaxin.hxmodulesystem.mapping;

import com.huaxin.hxmodulesystem.dto.request.AddSysDictionaryReqDTO;
import com.huaxin.hxmodulesystem.dto.request.UpdateSysDictionaryReqDTO;
import com.huaxin.hxmodulesystem.models.SysDictionary;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface SysDictionaryMapping {

    SysDictionary toEntity(AddSysDictionaryReqDTO in);

    void updateEntity(UpdateSysDictionaryReqDTO in, @MappingTarget SysDictionary entity);
}